using System;
using System.Data;
using System.Collections.Generic;
using System.Collections;
using log4net;
using FSS.BLL.Entities;
namespace FSS.BLL.Services
{
	#region QuotationService

	/// <summary>
	/// QuotationService object for Ibatis mapped table 'Quotation'.
	/// </summary>
	public class QuotationService : IQuotationService
	{
		private static readonly ILog log = LogManager.GetLogger(typeof(QuotationService).Name);
	  	private static volatile QuotationService _QuotationService = null;
        public static QuotationService GetInstance()
        {
            if (_QuotationService == null)
            {
                lock (typeof(QuotationService))
                {
                    if (_QuotationService == null) // double-check
                        _QuotationService = new QuotationService();
                }
            }
            return _QuotationService;
        }
		public QuotationService()
        {
            //
            // TODO: Add constructor logic here
            //
        }
        public IList<QuotationEntity> LoadByObjectId(QuotationEntity objE)
        {
            try
            {
                return ExecuteQueryForList<QuotationEntity>("QuotationLoadByObjectId", objE);
            }
            catch (Exception ex)
            {
                log.Debug(ex.Message);
                return null;
            }
        }

	}
	#endregion  
}
